from django.urls import path, include, re_path
from . import views
from rest_framework import routers
from rest_framework_jwt.views import obtain_jwt_token

urlpatterns = [
    path('login/', obtain_jwt_token),
    path("captcha/", views.CaptchaAPIView.as_view()),
    re_path("sms/(?P<mobile>1[3-9]\d{9})/", views.SMSAPIView.as_view()),
    path("", views.UserAPIView.as_view()),
    re_path("mobile/(?P<mobile>1[3-9]\d{9})/", views.MobileAPIView.as_view()),
    re_path("find_password/", views.FindPasswordAPIView.as_view()),
    re_path("token/", views.CheckTokenAPIView.as_view()),
    re_path("reset_password/", views.ResetPasswordAPIView.as_view()),
]
